# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=wl-mirror
pkgver=0.17.0
pkgrel=0
pkgdesc="A simple Wayland output mirror client"
url="https://github.com/Ferdi265/wl-mirror"
license="GPL-3.0-or-later"
arch="all"
makedepends="
	cmake
	mesa-dev
	samurai
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/Ferdi265/wl-mirror/releases/download/v$pkgver/wl-mirror-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_DOCUMENTATION=ON \
		-DINSTALL_EXAMPLE_SCRIPTS=OFF \
		-DWLR_PROTOCOL_DIR="$builddir/proto/wlr-protocols"
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a0466cefb1c18297076c02e341dc806b9cf48ca01a6a54d75d0048514e0658144f2147540c53a82795dc8f2bc7a802cea09873987f423aa2d8cde0a28c83463b  wl-mirror-0.17.0.tar.gz
"
